import Vue from 'vue';
import vuex from 'vuex'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import './index.less'

import router from './router/index'
import G2 from 'viser-vue'

let config = {
  el: '#app',
  router: router,
  template: `
    <el-container>
      <el-header>
        <h1>Logo</h1>
      </el-header>
      <el-main>
        <router-view></router-view>
      </el-main>
    </el-container>
  `,
  data:{
    eventHub:new Vue()
  }
}

Vue.use(vuex)
Vue.use(ElementUI)
Vue.use(G2)

new Vue(config)
